package BookManagement.service;

import BookManagement.domain.Comment;

import java.util.HashMap;
import java.util.List;

public interface CommentService {

    //添加评论
    public int addComment(Comment comment);

    //查找某书的评论
    public List<Comment> findCommentsByBook(HashMap<String,Object> map);

    //查找某用户的评论
    public List<Comment> findCommentsByUser(HashMap<String,Object> map);

    //删除评论
    public int deleteComment(HashMap<String,Object> map);

    //查找某书评论数
    public int findCommentCountForBook(String bookISBN);

    //查找某人评论数
    public int findCommentCountForUser(String userName);

    //查找唯一评论
    public Comment findOnlyComment(HashMap<String,Object> map);

}
